<extend name="Layout:layout_list" />
<block name="body_head_block"><style type="text/css">body{background:none;}#main_body {padding-top:0px;}</style></block>
<block name="body_content_block">
    <table id="main_grid" class="easyui-datagrid" data-url="{:AddonU('Statics/get_cdrlite_list_json','queue='.$queue)}"></table>
    <div id="tb" style="padding:2px 5px;">
        <div style="margin-bottom: 5px; border-bottom:solid 1px #dddddd;">
            <a href="{:AddonU('Statics/cdrlite_export','queue='.$queue)}" class="easyui-linkbutton" iconCls="icon-save" plain="true">导出</a>
        </div>
    </div>
</block>
<block name="body_after_block">
    <script type="text/javascript">
        // 页面初始化
        curd_grid.config({
            toolbar: '#tb',
            columns: [[
                    {title: "租户ID", field: "siteIDText", sortable: true},
                    {title: "主叫号码", field: "callerNo", sortable: true},
                    {title: "被叫号码", field: "dst", sortable: true},
                    {title: "工号", field: "extension", sortable: true},
                    {title: "方向", field: "directionText", sortable: true},
                    {title: "开始时间", field: "xcallAnswer", sortable: true},
                    {title: "结束时间", field: "end", sortable: true},
                    {title: "通话时长", field: "billsecText", sortable: true},
                    {title: "编号", field: "id", hidden: true},
                ]],
        });
        curd_grid.init();
    </script>
</block>